package com.imooc.mall.service;

import com.imooc.mall.exception.ImoocMallException;
import com.imooc.mall.model.pojo.User;

public interface UserService {

    /**
     * 用户注册
     * @param userName
     * @param password
     */
    public void register(String userName, String password) throws ImoocMallException;

    // 登录
    public User login(String userName, String password) throws ImoocMallException;

    // 更新个性签名
    public void updateInformation(User user) throws ImoocMallException;

    /**
     * 判断是否为管理员
     * @param user
     * @return true为管理员，false为普通用户
     */
    boolean checkAdminRole(User user);
}
